//
//  MVUserIcon.m
//  Gunz
//
//  Created by Joggy on 16/4/12.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import "MVUserIcon.h"
#import "GZConst.h"

@implementation MVUserIcon

-(instancetype)init {
    self = [super initWithFrame:CGRectMake(0, 0, [GZConst getScreenWidth], 88)];
    _icon = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 66, 66)];
    _icon.layer.position = CGPointMake(19 + 33, 44);
    _icon.layer.cornerRadius = 33;
    _icon.layer.masksToBounds = true;
    _icon.image = [UIImage imageNamed:@"阿狸"];
    [self addSubview:_icon];
    _name = [[UILabel alloc] initWithFrame:CGRectMake(38 + 66, 0, [GZConst getScreenWidth]/3, 66)];
    CGPoint po = _name.layer.position;
    po.y = 44;
    _name.layer.position = po;
    _name.textAlignment = NSTextAlignmentLeft;
    _name.numberOfLines = 1;
    _name.textColor = [UIColor colorWithRed:0.298 green:0.345 blue:0.4235 alpha:1];
    _name.text = @"Qiuny";
    [self addSubview:_name];
    return self;
}

@end
